//
//  OutLoginTableViewCell.m
//  SafeFoodManagerDemo
//
//  Created by bob on 2017/10/16.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "OutLoginTableViewCell.h"

@implementation OutLoginTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.OutLoginBtn.layer.cornerRadius=3;
    
    self.OutLoginBtn.layer.masksToBounds=YES;
    
    // Initialization code
}
- (IBAction)btnClickAction:(UIButton *)sender {
    
    _CLblock();
    
}


-(void)setBgColor:(UIColor *)bgColor
{
    _bgColor=bgColor;
    
    self.OutLoginBtn.backgroundColor=bgColor;
    
}


-(void)setTitlecolor:(UIColor *)Titlecolor
{
    _Titlecolor=Titlecolor;
    
    [self.OutLoginBtn setTitleColor:Titlecolor forState:UIControlStateNormal];
    
}


-(void)setTitle:(NSString *)title
{
    _title=title;
    
    [self.OutLoginBtn setTitle:title forState:UIControlStateNormal];
}


-(void)setCellBgColor:(UIColor *)CellBgColor
{
    _CellBgColor=CellBgColor;
    
    self.backgroundColor=CellBgColor;
}


-(void)setEnable:(BOOL)enable
{
    _enable=enable;
    
    if (enable) {
        
        self.OutLoginBtn.backgroundColor=TBColorProvideBtnbg;
    }else{
        
        
        self.OutLoginBtn.backgroundColor=[UIColor lightGrayColor];
    }
    
    self.OutLoginBtn.enabled=enable;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
